@echo off
echo 🚀 启动后端服务 (Spring Boot)
echo.

REM 设置JWT密钥
set JWT_SECRET=YourSuperSecretJWTKeyHere1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ

REM 数据库配置（如果需要自定义）
REM set DB_HOST=localhost
REM set DB_PORT=3306
REM set DB_NAME=learning
REM set DB_USERNAME=learning
REM set DB_PASSWORD=learning123

echo 🔧 JWT密钥已设置
echo 📊 启动Spring Boot应用...
echo.

cd /d "%~dp0backend"

REM 启动后端
.\mvnw.cmd spring-boot:run

pause
